package com.edroid.autorunner.um;

import com.example.utils.TimeUtils;


public class DayInfo {
	public int day;
	public int count;
	public int repeat;
	public boolean repeatFinished;
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder(128);
		int cur = TimeUtils.getDayOfYearBase2014();
		sb.append(day).append('-')
		.append(cur-day).append('-')
			.append(TimeUtils.dayOfYearBase2014ToDate(day))
			.append(" 总:").append(count);
		
		if(day != cur) {
			sb.append(" 重复:").append(repeat)
			.append(" [")
			.append(repeatFinished? "完成" : "未完成").append(']');
		}
		
		return sb.toString();
	}
}
